<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    /* var i = 1;
    while(i <= 9){
        document.write("第" + i +"行:");

        var j = 1;
        while(j <= i){ // i =>  1  2  3

            // document.write("*");
            document.write(j + " ")

            j++;
        }

        document.write("<br>");
        i++;
    } */


    var i = 1;
    while(i <= 9){

        var j = 1;
        while(j <= i){ // i =>  1  2  3

            document.write(j + "x" + i + "=" + i * j + " ");

            j++;
        }

        document.write("<br>");
        i++;
    }




</script>
</html>